﻿using Corina.Datamodel.DataObject;
using System;
using System.CodeDom.Compiler;
using System.ComponentModel;
using System.Diagnostics;

namespace Corina.Lantern.DataService
{
    [DebuggerStepThroughAttribute()]
    [GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    public class ExecuteCompletedEventArgs : AsyncCompletedEventArgs
    {
        private object[] results;

        public ExecuteCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) :
            base(exception, cancelled, userState)
        {
            this.results = results;
        }

        public ResultInfo Result
        {
            get
            {
                base.RaiseExceptionIfNecessary();
                return ((ResultInfo)(this.results[0]));
            }
        }
    }
}
